import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询风险隐患统计上报全部
export const hazardlDataReportList = data => {
    return $get('/risk/hazardlDataReport/list', data)
}

// 查询风险隐患统计上报列表
export const hazardlDataReportPage = data => {
    return $get('/risk/hazardlDataReport/page', data)
}

// 新增风险隐患统计上报
export const hazardlDataReportAdd = data => {
    return $post('/risk/hazardlDataReport/add', data)
}

// 查询风险隐患统计上报详情
export const hazardlDataReportDetail = id => {
    return $get('/risk/hazardlDataReport/detail/'+ id)
}

// 更新风险隐患统计上报
export const hazardlDataReportUpdate = data => {
    return $post('/risk/hazardlDataReport/update', data)
}

// 删除风险隐患统计上报
export const hazardlDataReportDelete = id => {
    return $post('/risk/hazardlDataReport/delete/'+ id)
}

// 导出风险隐患统计上报
export const hazardlDataReportExport = (data,fileName) => {
    return $download('/risk/hazardlDataReport/export',data, fileName)
}
